package quick.start.ui.widget;

import quick.start.ui.R;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

public class HeaderFragment extends Fragment {
	
    private int mLayoutResId = R.layout.header;
    private ViewGroup mAreaLeft;
    private ViewGroup mAreaCenter;
    private ViewGroup mAreaRight;
    private ViewGroup mAreaBottom;

    public HeaderFragment() {
        super();
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View v = inflater.inflate(mLayoutResId, null);
        mAreaLeft = (ViewGroup) v.findViewById(R.id.area_header_left);
        mAreaCenter = (ViewGroup) v.findViewById(R.id.area_header_center);
        mAreaRight = (ViewGroup) v.findViewById(R.id.area_header_right);
        mAreaBottom = (ViewGroup) v.findViewById(R.id.area_header_bottom);
        return v;
    }

    public ViewGroup getLeftRoot() {
        return mAreaLeft;
    }

    public ViewGroup getCenterRoot() {
        return mAreaCenter;
    }

    public ViewGroup getRightRoot() {
        return mAreaRight;
    }

    public ViewGroup getAreaBottom() {
        return mAreaBottom;
    }
}
